package pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Document(indexName = "airparking")
public class Order implements Serializable {
    /**
     * 订单id
     */
    @Id
    private String orderId;

    /**
     * 用户id
     */
    @Field(type = FieldType.Text)
    private String userId;

    /**
     * 车位id
     */
    @Field(type = FieldType.Text)
    private String parkingId;
    /**
     * 订单编号
     */
    @Field(type = FieldType.Text)
    private String orderNumber;
    /**
     * 订单创建时间
     */
    @Field(type = FieldType.Text)
    private String orderCreateTime;
    /**
     * 订单状态
     */
    @Field(type = FieldType.Text)
    private String orderStatus;
    /**
     * 订单结束时间
     */
    @Field(type = FieldType.Text)
    private String orderEndTime;
    /**
     * 金额
     */
    @Field(type = FieldType.Double)
    private Double money;
    /**
     * 优惠劵金额
     */
    @Field(type = FieldType.Integer)
    private Integer coupon;
    /**
     * 支付方式
     */
    @Field(type = FieldType.Text)
    private String method;

    /**
     * 用户名
     */
    @Field(type = FieldType.Text)
    private String username;
    /**
     * 车位号
     */
    @Field(type = FieldType.Text)
    private String parkingNo;
    /**
     * 省份名称
     */
    @Field(type = FieldType.Text)
    private String provinceName;
    /**
     * 城市名
     */
    @Field(type = FieldType.Text)
    private String cityName;
    /**
     * 区域名
     */
    @Field(type = FieldType.Text)
    private String areaName;
    /**
     * 街道名
     */
    @Field(type = FieldType.Text)
    private String streetName;
    /**
     * 地址信息
     */
    @Field(type = FieldType.Text)
    private String addressInfo;
    /**
     * 开始时间
     */
    @Field(type = FieldType.Text)
    private String startTime;
    /**
     * 结束时间
     */
    @Field(type = FieldType.Text)
    private String endTime;

    public Order() {
    }

    public Order( String orderId, String userId, String parkingId, String orderNumber, String orderCreateTime, String orderStatus, String orderEndTime, Double money, Integer coupon, String method, String username, String parkingNo, String provinceName, String cityName, String areaName, String streetName, String addressInfo, String startTime, String endTime) {

        this.orderId = orderId;
        this.userId = userId;
        this.parkingId = parkingId;
        this.orderNumber = orderNumber;
        this.orderCreateTime = orderCreateTime;
        this.orderStatus = orderStatus;
        this.orderEndTime = orderEndTime;
        this.money = money;
        this.coupon = coupon;
        this.method = method;
        this.username = username;
        this.parkingNo = parkingNo;
        this.provinceName = provinceName;
        this.cityName = cityName;
        this.areaName = areaName;
        this.streetName = streetName;
        this.addressInfo = addressInfo;
        this.startTime = startTime;
        this.endTime = endTime;
    }


    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getParkingId() {
        return parkingId;
    }

    public void setParkingId(String parkingId) {
        this.parkingId = parkingId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(String orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderEndTime() {
        return orderEndTime;
    }

    public void setOrderEndTime(String orderEndTime) {
        this.orderEndTime = orderEndTime;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getCoupon() {
        return coupon;
    }

    public void setCoupon(Integer coupon) {
        this.coupon = coupon;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getParkingNo() {
        return parkingNo;
    }

    public void setParkingNo(String parkingNo) {
        this.parkingNo = parkingNo;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getStreetName() {
        return streetName;
    }

    public void setStreetName(String streetName) {
        this.streetName = streetName;
    }

    public String getAddressInfo() {
        return addressInfo;
    }

    public void setAddressInfo(String addressInfo) {
        this.addressInfo = addressInfo;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}